package martian.m4gic
{
	import flash.external.ExternalInterface;
	
		public function log(...args):String
		{
			var data:String = args.join(" ");
			
			trace(data);
			
			if (ExternalInterface.available)
			{
				if (ExternalInterface.call("eval", "console.log != undefined"))
				{
					ExternalInterface.call("console.log", data);
				}
			}
			
			return data;
		}
}